package com.aspose.cells;

class zxi extends zck {
   zxi(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      com.aspose.cells.b.a.b.a.ze var6 = new com.aspose.cells.b.a.b.a.ze();
      double var7;
      double var9;
      switch(this.e.b) {
      case 1:
         var7 = (double)(var2 + var4 / 2.0F) + (double)(var4 / 2.0F) * Math.cos(zbif.a(315.0D));
         var9 = (double)(var3 + var5 / 2.0F) - (double)(var5 / 2.0F) * Math.sin(zbif.a(315.0D));
         var6.a(var2, var3, var4, var5, 45.0F, -300.0F);
         var6.b(var2 + var4 / 2.0F, var3 + var5, var2 + var4, var3 + var5);
         var6.b(var2 + var4, var3 + var5, var2 + var4, (float)var9);
         var6.b(var2 + var4, (float)var9, (float)var7, (float)var9);
         break;
      case 2:
         var6.a(var2, var3, var4, var5, -45.0F, 300.0F);
         var7 = (double)(var2 + var4 / 2.0F) + (double)(var4 / 2.0F) * Math.cos(zbif.a(315.0D));
         var9 = (double)(var3 + var5 / 2.0F) + (double)(var5 / 2.0F) * Math.sin(zbif.a(315.0D));
         var6.b(var2 + var4 / 2.0F, var3, var2 + var4, var3);
         var6.b(var2 + var4, var3, var2 + var4, (float)var9);
         var6.b(var2 + var4, (float)var9, (float)var7, (float)var9);
         break;
      case 3:
         var6.a(var2, var3, var4, var5, 270.0F, 300.0F);
         var7 = (double)(var2 + var4 / 2.0F) - (double)(var4 / 2.0F) * Math.cos(zbif.a(315.0D));
         var9 = (double)(var3 + var5 / 2.0F) + (double)(var5 / 2.0F) * Math.sin(zbif.a(315.0D));
         var6.b((float)var7, (float)var9, var2, (float)var9);
         var6.b(var2, (float)var9, var2, var3);
         var6.b(var2, var3, var2 + var4 / 2.0F, var3);
         break;
      case 4:
         var6.a(var2, var3, var4, var5, 90.0F, -300.0F);
         var7 = (double)(var2 + var4 / 2.0F) - (double)(var4 / 2.0F) * Math.cos(zbif.a(315.0D));
         var9 = (double)(var3 + var5 / 2.0F) - (double)(var5 / 2.0F) * Math.sin(zbif.a(315.0D));
         var6.b((float)var7, (float)var9, var2, (float)var9);
         var6.b(var2, (float)var9, var2, var3 + var5);
         var6.b(var2, var3 + var5, var2 + var4 / 2.0F, var3 + var5);
      }

      return var6;
   }

   void c(com.aspose.cells.b.a.b.zq var1) {
      var1 = zbgk.a(var1);
      super.c(var1);
   }
}
